package com.cyj.qqclient.service;

import java.util.HashMap;

/**
 * 管理客户端到服务端的线程
 */
public class ManageClientConnectSeverThread {
    //把多线程放入HashMap,key为用户id,value为线程
    private static HashMap<String,ClientConnectServerThread> hm=new HashMap<>();
    public static void addClientConnectServerThread(String userID,ClientConnectServerThread clientConnectServerThread){
        hm.put(userID,clientConnectServerThread);
    }
    public static ClientConnectServerThread getClientConnectServerThread(String userID){
        return hm.get(userID);
    }
}
